# -*- coding: utf-8 -*-
"""
date: Tue Dec 11 15:33:44 2018
python: Anaconda 3.6.5
author: kanade
email: kanade@blisst.cn
"""
import numpy as np


a = np.arange(1, 9)
print('a: ', a)
b = a.reshape(2, 4)
print('b: ', b)
c = b.reshape(2, 2, 2)
print('c: ', c)
d = c.ravel()
print('d: ', d)
e = c.flatten()
print('e: ', e)
a += 10
print(a, b, c, d, e, sep='\n#')
a.shape = (2, 4)
print('a: ', a)
a.resize(2, 2, 2)
print('a: ', a)
f = b.transpose()
print(f)





